﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ComApp.Model
{
    public class User
    {
        public Guid ID { get; set; }
        public string UserCode { get; set; }
        public string UserName { get; set; }
        public string UserSex { get; set; }
        public string UserPic { get; set; }

        public override int GetHashCode()
        {
            return this.ID.GetHashCode();
        }

        public override bool Equals(object obj)
        {
            if (obj == null)
                return false;
            if (obj is User)
                return ((User)obj).ID == this.ID;
            else
                return false;
        }

    }

 
}
